package com.ws.genercity.demo09;

import java.util.List;

/**
 * @author 13353
 * 泛型擦除
 */
public class Erasure<T extends Number> {
    private T key;

    public T getKey() {
        return key;
    }

    public void setKey(T key) {
        this.key = key;
    }

    /**
     * 泛型方法，与类的泛型没有关系
     * @param t
     * @return
     * @param <T>
     */
    public <T extends List> T show (T t) {
        return t;
    }

}
